package com.linewow.xhyy.nihaonew.fragment;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.linewow.xhyy.nihaonew.R;
import com.linewow.xhyy.nihaonew.activity.ConfigureBlankActivity;
import com.linewow.xhyy.nihaonew.activity.account.LoginActivity;
import com.linewow.xhyy.nihaonew.base.BaseFragment;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by LXR on 2016/10/10.
 */
public class MineLoginFragment extends BaseFragment {

    @Bind(R.id.mine_login_avatar)
    ImageView mineLoginAvatar;
    @Bind(R.id.mine_login_message)
    TextView mineLoginMessage;
    @Bind(R.id.mine_login_btn)
    RelativeLayout mineLoginBtn;
    @Bind(R.id.toolbar_configure_mid_tv)
    TextView toolbarConfigureMidTv;
    @Bind(R.id.toolbar_configure_right_img)
    ImageView toolbarConfigureRightImg;

    @Override
    public View initView() {
        View view = View.inflate(getActivity(), R.layout.fragment_mine_login, null);
        ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void initData() {
        super.initData();
    }

    @Override
    public void initList() {
        super.initList();
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick(R.id.mine_login_btn)
    public void onClick() {
        Intent intent = new Intent(MineLoginFragment.this.getActivity(), LoginActivity.class);
        startActivity(intent);
    }



    @OnClick(R.id.toolbar_configure_right_img)
    public void onClickConfigure() {
        Intent intent=new Intent(MineLoginFragment.this.getActivity(),ConfigureBlankActivity.class);
        startActivity(intent);
    }
}
